package wiki.hitime.stl.daq.bean.db;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 数据采集记录表(DaqAcquisitionRecord)实体类
 *
 * @author zhangdp
 * @since 2019-07-15 16:59:58
 */
@Data
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
@Table(name = "daq_acquisition_record")
public class DaqAcquisitionRecord {
    private static final long serialVersionUID = 686770373523462056L;

    /**
     * 编号
     **/
    @Id
    @Column(updatable = false, insertable = false)
    private Long id;

    /**
     * 执行记录编号
     **/
    private Long executeRecordId;

    /**
     * 采集规则编号
     **/
    private Long acquisitionRuleId;

    /**
     * 采集类型，1-单一值采集，2-单列值采集
     **/
    private Integer acquisitionType;

    /**
     * 采集时间
     **/
    private Date acquisitionTime;

    /**
     * 备注
     **/
    private String remark;

    /**
     * 处理状态，0-未处理，1-处理成功，2-处理失败
     **/
    private Integer processStatus;

    /**
     * 处理消息
     **/
    private String processMsg;

    /**
     * 控制版本号
     **/
    private Long ctlVersion;

    /**
     * 是否删除数据，0-有效，1-删除
     **/
    private Boolean isDelete;

    /**
     * 更新时间
     **/
    @Column(updatable = false, insertable = false)
    private Date modified;

    /**
     * 创建时间
     **/
    @Column(updatable = false, insertable = false)
    private Date created;
}
